from django.urls import path, re_path
from rest_framework.routers import SimpleRouter

from . import views

router = SimpleRouter()
router.register('user', views.UserView, 'user')

router.register('register', views.RegisterView, 'register')

urlpatterns = [
    path('index/', views.index),
    path('seckill/', views.seckill),
    path('get_result/', views.get_result),
]
urlpatterns += router.urls
